package Demo8;

public class Cycle extends Shape{
    private double r;
    final private static double PI =3.14;
    public Cycle(double r){
        this.r =r;
    }
    public void draw(){
        System.out.println("圆: r="+r);
    }
    public void calArea(){
        area = PI *r*r;
    }
}
